#include "intersection.h"


intersection::intersection()
{
	objectID		= 0;
	distance		= 0.0;
	colisionCoords	= point();
	objectNormal	= vector3();
	objectMaterial	= material();
	objectColor		= color();
	texCoords.setTexCoords(0.0, 0.0);

}

intersection::~intersection()
{

}

intersection & intersection::operator=( intersection &other )
{
	this->objectID = other.objectID;
	this->distance = other.distance;
	this->colisionCoords = other.colisionCoords;
	this->objectNormal = other.objectNormal;
	//this->material = other.material;
	this->objectColor = other.objectColor;
	this->texCoords	= other.texCoords;
	return *this; 
}